home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / RCSC.ZIP / SRC / CLIB.H < prev    next >
Text File  |  1997-01-12  |  2KB  |  62 lines

  1. /*
  2. ** CLIB.H -- Definitions for Small-C library functions.
  3. **
  4. ** Copyright 1983  L. E. Payne and J. E. Hendrix
  5. */
  6.  
  7. /*
  8. ** Misc parameters
  9. */
  10. #define MAXFILES 20  /* maximum open files */
  11. #define DOSEOF   26  /* DOS end-of-file byte */
  12. #define ARCHIVE  32  /* file archive bit */
  13.  
  14. /*
  15. ** DOS function calls
  16. */
  17. #define CREATE   60  /* make file */
  18. #define OPEN     61  /* open file */
  19. #define CLOSE    62  /* close file or device */
  20. #define READ     63  /* read from a file */
  21. #define WRITE    64  /* write to a file */
  22. #define DELETE   65  /* delete file */
  23. #define SEEK     66  /* seek within a file */
  24. #define CONTROL  68  /* control device */
  25. #define FORCE    70  /* force use of a handle */
  26. #define RETDOS   76  /* close files and return to DOS */
  27. #define FNDFIL   78  /* find first occurrence of a file */
  28. #define FNDNXT   79  /* find next occurrence of a file */
  29. #define RENAME   86  /* rename file */
  30.  
  31. /*
  32. ** File status bits
  33. */
  34. #define OPNBIT   1  /* open condition */
  35. #define EOFBIT   2  /* end-of-file condition */
  36. #define ERRBIT   4  /* error condition */
  37.  
  38. /*
  39. ** File positioning origins
  40. */
  41. #define FROM_BEG  0  /* from beginning of file */
  42. #define FROM_CUR  1  /* from current position */
  43. #define FROM_END  2  /* from end of file */
  44.  
  45. /*
  46. ** Buffer usage codes
  47. ** NULL means the buffer is not used.
  48. */
  49. #define EMPTY     1  /* buffer is currently empty */
  50. #define IN        2  /* buffer is currently holding input data */
  51. #define OUT       3  /* buffer is currently holding output data */
  52.  
  53. /*
  54. ** ASCII characters
  55. */
  56. #define ABORT    3
  57. #define RUB      8
  58. #define PAUSE   19
  59. #define WIPE    24
  60. #define DEL    127
  61.  
  62.